This chapter describes how to use the Thin Server Function (TSF) configuration and operating commands and includes the following sections:
Use the following procedure to access the TSF configuration process.
* talk 6 Config>
After you enter the talk 6 command, the CONFIG prompt (Config>) displays on the terminal. If the prompt does not appear when you first enter configuration, press Return again.
To configure TSF, enter the commands at the Thin server config> prompt.
Table 60. TSF Configuration Command Summary
Command | Function |
---|---|
? (Help) | Displays all the commands available for this command level or lists the options for specific commands (if available). See "Getting Help". |
Add | Adds master file server (RFS or NFS). |
Delete | Deletes master file server (RFS or NFS). |
List | Lists the thin server configuration. |
Modify | Modifies master file server (RFS or NFS). |
Set | Sets the thin server parameters. |
Exit | Returns you to the previous command level. See "Exiting a Lower Level Environment". |
Use the add command to add a master file server configuration.
If you select nfs as the master-file-server type, the Thin Server will use NFS to communicate with the master file server and synchronize files and NSs can communicate with the Thin Server using TFTP or NFS. If you select rfs as the master-server type, then the Thin Server will use RFS to communicate with the master file server and synchronize files and NSs can communicate with the Thin Server using TFTP or RFS.
Syntax:
Valid Values: any valid IP address
Default Value: none
Valid Values: 5 - 10 seconds
Default Value: 5
Valid Values: 1 - 10
Default Value: 1
Valid Values: 512, 1024, 2048, 4096, 8192 (bytes)
Default Value: 8192
Valid Values: yes or no
Valid Values: a-z, A-Z, 0-9, ., _, --, /
Default Value: none
Valid Values:
The TSF will pre-load all files in the specified directory.
The TSF will not pre-load any files in the specified directory. Instead the TSF will load files from the directory and any of its sub-directories as needed.
Default Value: no
Valid Values: any valid IP address
Default Value: none
Valid Values: 5 - 10 seconds
Default Value: 5
Valid Values: 1 - 10
Default Value: 1
Valid Values: 512, 1024, 2048, 4096, 8192 (bytes)
Default Value: 8192
Valid Values: yes or no
Default Value: yes
Valid Values: a-z, A-Z, 0-9, ., _, --, /
Default Value: none
Valid Values:
The TSF will pre-load all files in the specified directory.
The TSF will not pre-load any files in the specified directory. Instead the TSF will load files from the directory and any of its sub-directories as needed.
Default Value: no
Valid Values: any valid IP address
Default Value: none
Valid Values: 5 - 10 seconds
Default Value: 5
Valid Values: 1 - 10
Default Value: 1
Valid Values: 512, 1024, 2048, 4096, 8192 (bytes)
Default Value: 8192
Valid Values: yes or no
Default Value: yes
Valid Values: a-z, A-Z, 0-9, ., _, --, /
Default Value: none
Valid Values:
The TSF will pre-load all files in the specified directory.
The TSF will not pre-load any files in the specified directory. Instead the TSF will load files from the directory and any of its sub-directories as needed.
Default Value: no
Valid Values: any valid IP address
Default Value: none
Valid Values: 5 - 10 seconds
Default Value: 5
Valid Values: 1 - 10
Default Value: 1
Valid Values: 512, 1024, 2048, 4096, 8192 (bytes)
Default Value: 8192
Valid Values: yes or no
Default Value: yes
Valid Values: a-z, A-Z, 0-9, ., _, --, /
Default Value: none
Valid Values:
The TSF will pre-load all files in the specified directory.
The TSF will not pre-load any files in the specified directory. Instead the TSF will load files from the directory and any of its sub-directories as needed.
Default Value: no
Valid Values: any valid IP address
Default Value: none
Valid Values: 5 - 10 seconds
Default Value: 5
Valid Values: 1 - 10
Default Value: 1
Valid Values: 512, 1024, 2048, 4096, 8192 (bytes)
Default Value: 8192
Valid Values: a-z, A-Z, 0-9, ., _, --, /Default Value: /QIBM/ProdData/OS400/NetStationRmtController/LoadList.file
Example: For NFS
Thin server config> add master-file-server nfs File Server IP address [0.0.0.0]? 10.22.55.94 TFTP Packet Timeout in seconds (5 - 10) [5]?6 TFTP Max Retry Limit (1 - 10) [1]? 7 TFTP Max Segment Size in bytes (valid values are 512, 1024, 2048, 4096, 8192) [8192]? 512 Default Include Directories: Include Directory List Follows: Include all Subdirs? Directory Names -------- ----------------------------------- N /hfs/usr/lpp/nstation/standard Y /hfs/usr/lpp/nstation/standard/mods Y /hfs/usr/lpp/nstation/standard/nls Y /hfs/usr/lpp/nstation/standard/fonts Y /hfs/usr/lpp/nstation/standard/java Y /hfs/usr/lpp/nstation/standard/keyboards Y /hfs/usr/lpp/nstation/standard/proms Y /hfs/usr/lpp/nstation/standard/X11 Y /hfs/usr/lpp/nstation/standard/configs Y /hfs/usr/lpp/nstation/standard/SysDef Y /hfs/usr/lpp/nstation/standard/zoneinfo Do you want additional Include Subdirectories (Y)es (N)o? [y] Include Subdirectory [ ]? /usr/lpp/nstation/standard/whatever Include all subdirectories under this directory (Y)es or (N)o? [n] Do you want additional Include Subdirectories (Y)es (N)o? []
Example: For RFS
Thin server config> add master-file-server rfs File Server IP address [0.0.0.0]? 01.01.01.98 TFTP Packet Timeout in seconds (5-10) [5]? 6 TFTP Max Retry Limit (1-10) [1]? 7 TFTP Max Segment Size in bytes (valid values are 512, 1024, 2048, 4096, 8192) [8192]? 512 Pre-Load File name [/QIBM/ProdData/OS400/NetStationRmtController/LoadList.file]?
Use the delete command to remove a master file server configuration.
Syntax:
Use the list command to display the TSF configuration.
Syntax:
Example:
Thin server config> list all Thin Server Feature: Enabled Interval to refresh cache in day(s): 2 Time of day (military time) to refresh cache: 0800 Megabytes used for Thin Server RAM cache: 4 Use Hard File: YES Master Thin Server list: Server IP Address: 9.37.111.12 Server Protocol: NFS TFTP Packet Timeout in seconds: 10 TFTP Retry Limit : 6 TFTP Max Segment Size in bytes: 512 Initial directories setup for server type: NFS-AIX NFS Include Directory List Follows: Include all subdirs? Directory Names -------- -------------------------------------------- N /usr/netstation Y /usr/netstation/mods Y /usr/netstation/nls Y /usr/netstation/fonts Y /usr/netstation/java Y /usr/netstation/keyboards Y /usr/netstation/proms Y /usr/netstation/X11 Y /usr/netstation/configs Y /usr/netstation/SysDef Y /usr/netstation/zoneinfo
Use the modify command to modify a master file server configuration.
Syntax:
Example: For NFS
Thin server config> modify master-file-server nfs File Server IP address [ ]? 10.22.55.94 TFTP Packet Timeout in seconds (5 - 10) [5 ]? 10 TFTP Max Retry Limit (1 - 10) [1]? 6 TFTP Max Segment Size in bytes valid values are 512, 1024, 2048, 4096, 8192) [8192]? 1024 Include subdirectory [/usr/lpp/tcpip/nstation/standard, (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [N]? Include subdirectory [/usr/lpp/tcpip/nstation/standard/mods], (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [N]? Include subdirectory [/usr/lpp/tcpip/nstation/standard/nls], (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [N]? Include subdirectory [/usr/lpp/tcpip/nstation/standard/fonts], (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [N]? Include subdirectory [/usr/lpp/tcpip/nstation/standard/java], (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [N]? Include subdirectory [/usr/lpp/tcpip/nstation/standard/keyboards], (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [N]? Do you want additional Include Subdirectories (Y)es or (N)o? n
Example: For RFS
Thin server config> modify master-file-server rfs File Server IP address [09.09.255.253 ]? 01.01.01.98 TFTP Packet Timeout in seconds [5 ]? 10 TFTP Retry Limit [5 ]? 6 TFTP Max Segment Size in bytes [8192]? 512 Pre-Load File name [/QIBM/ProdData/OS400/NetStationRmtController/LoadList.file]?
Use the set command to set TSF configuration parameters.
Syntax:
Valid Values:
A mode of enable means that the TSF is fully functional and will serve cached files to Network Stations.
A mode of disable means that the TSF is not active and will not respond to any Network Stations. Network Stations should be configured to communicate directly to the server.
A mode of passthru is only valid when using RFS. Passthru will allow the Network Station to contact the TSF, but will always get files from the master file server.
Default Value:
Valid Values: 00 - 365
Default Value: 01
Valid Values: 0001 - 2400
Default Value: 0100
Valid Values: 8 - 64 Megabytes
Default Value: 16
Valid Values: yes or no
Default Value: yes
Example:
Thin server config> set mode passthru This server feature (TSF) is passthru Thin server config> set interval-pre-load-list Interval to refresh the Pre-Load list in days (00-365) [01]? 1 Thin server config> set time-to-refresh-pre-load-list Time of day to refresh cache in military time (0001-2400) [0100] 0800 Thin server config> set memory-cache Amount of memory in megabytes for Thin Server RAM cache (8-64MB) [8] Thin server config> set hard-file Use the Hard File (Y)ex N(o) [Y]? yes
Use the following procedure to access the TSF monitoring commands. This process gives you access to the TSF monitoring process.
* talk 5 +
After you enter the talk 5 command, the GWCON prompt (+) displays on the terminal. If the prompt does not appear when you first enter configuration, press Return again.
Example:
+ f tsf Thin-Server>
This section describes the TSF monitoring commands.
Table 61. TSF Monitoring Command Summary
Command | Function |
---|---|
? (Help) | Displays all the commands available for this command level or lists the options for specific commands (if available). See "Getting Help". |
Delete | Deletes a file from Thin Server feature file cache. |
Flush | Flushes the Thin Server feature file cache. |
List | Displays Thin Server settings and values. |
Refresh | Refreshes the cache. |
Reset | Resets counters. |
Restart | Restarts the Thin Server process. |
Set | Changes Thin Server feature settings. |
Exit | Returns you to the previous command level. See "Exiting a Lower Level Environment". |
Use the delete command to remove a file from the Thin Server feature file cache.
Syntax:
Valid Values:
Default Value: none
Example:
Thin-Server> delete Enter filename to delete from the File Cache: /ibm/prod/ns/5494.dat Are you sure that you want to delete this file? (Y/ [N]): y File successfully deleted
Use the flush command to flush the TSF memory and hard disk cache space. The flush command will erase all cached files. The Thin Server cache will be updated on the next refresh from the Master Server. Network Stations may experience delays until the refresh is completed.
Syntax:
Example:
Thin-Server> flush The FLUSH command will erase all cached files. The Thin Server cache will be updated on the next refresh from the Master Server. Network Stations may experience delays until the refresh is completed. Are you sure you really want to do this? (Y/ [N]: y All Thin Server cached files have been flushed
Use the list command to display TSF parameter settings.
Syntax:
Example:
Thin-Server> list cached-files Cached File Name File Size Time Stamp Flags Host File Name ------------ --------- ----------------- ----- ----------------- 00000026.DAT 2729 04/08/98 13:35:07 RYY /QIBM/ProdData/OS400/Netstat ionRmtController/Loadlist.file 00000002.DAT 2049220 09/16/97 08:55:39 RYU /QIBM/PRODDATA/NETWORKSTATIO N/KERNEL 10060 03/04/97 16:12:44 RY- /QIBM/PRODDATA/NETWORKSTATIO N/FONTS/PCF/MISC/7X14B.PCF List is Complete
The flags have the following meaning:
Common combinations of the last two flags (all three flags shown for clarity) are:
Example: For RFS
Thin-Server> list config Thin Server Configuration Thin Server feature is: Enabled Thin Server feature state is: Active, initializing file structure Interval to refresh Pre-Load List (#days): 1 Time of day (Military) to refresh Pre-Load List: 01:00:00 Memory (KB) currently using for RAM cache: 25600 Maximum memory (KB) configured for RAM cache: 25600 Currently using Hard File?: Yes Hard File storage defined for Thin Server: 942752 Hard File storage being used for Thin Server: 0 Number of Files Cached: 0 Master Server IP address: 9.37.177.61 TFTP Packet Timeout Value: 5 TFTP Max Retries: 1 TFTP Max Segment Size: 8192 Thin Server Sync Protocol: RFS Name of Pre-Load List file: /QIBM/ProdData/OS400/NetstationRmtController/Loadlist.file Thin Server>
Example: For NFS
Thin-Server> list config Thin Server Configuration Thin Server feature is: Enabled Thin Server Feature state is: Active, initializing file structure Interval to refresh Pre-Load List (#days): 1 Time of day (Military) to refresh Pre-Load List: 01:00:00 Memory (KB) currently using for RAM cache: 25600 Maximum memory (KB) configured for RAM cache: 25600 Currently using Hard File?: Yes Hard File storage defined for Thin Server: 915424 Hard File storage being used for Thin Server: 27328 Number of Files Cached: 82 Master Server IP address: 9.37.181.47 TFTP Packet Timeout Value: 5 TFTP Max Retries: 1 TFTP Max Segment Size: 8192 Thin Server Sync Protocol: NFS Include Directory List Follows: Include all Subdirs? Directory Names -------- ----------------------------------- N /usr/netstation Y /usr/netstation/mods Y /usr/netstation/nls Y /usr/netstation/fonts Y /usr/netstation/java Y /usr/netstation/keyboards Y /usr/netstation/proms Y /usr/netstation/X11 Y /usr/netstation/configs Y /usr/netstation/SysDef Y /usr/netstation/zoneinfo Thin Server>
Example:
Thin-Server> list file-access-counters Disk Statistics/Counters: Number of files currently open: 20 Number of Total File Opens: 23 Number of Open Fails when File is Locked: 1 Number of Read misses - Version Mismatch: 4 Number of Read misses - File Not Present: 3 Number of Write misses - Hard File Full: 4
Example:
Thin-Server> list file-refresh-counters File Refresh Statistics/Counters Number of Files Updated during last refresh: 0 Number of Update Failures during last refresh: 0 Number of Refreshes: 0 Number of Refresh Failures: 1 Number of Files Refreshed: 30 Date/Time of Last File Update: has not occurred since last reset Date/Time of Last File Download: has not occurred since last reset Thin Server>
Example:
Thin-Server> list pre-load-list <display of pre-load list raw file> List of Pre-Load List File is Complete
Example:
Thin-Server> list tftp-counters TFTP Statistics/Counters Number of Total TFTP Clients: 3 Number of Current TFTP Clients: 2 Number of Files Served: 22 Number of Files Served by Master Server: 22
Example: For RFS
Thin-Server> list ts-counters Thin Server Statistics/Counters Relay to Master File Server: Available Number of Total RFS Clients: 0 Number of Current RFS Clients: 0 Number of Files Served: 0 Number of Files Served by Master Server: 0 Number of NS Port Mapper socket accepts: 0 Number of NS Port Mapper sockets currently active/open: 0 Number of NS Server socket accepts: 0 Number of NS 8473 sockets currently active/open: 0 Number of NS Login sock accepts: 0 Number of NS 8476 sockets currently active/open: 0 Number of RFS writes to a Thin Server cached file: 0 Thin Server>
Example: For NFS
Thin-Server> list ts-counters Thin Server Statistics/Counters Number of NFS Server Reads: 13 Number of NFS Server Read Directories: 8 Number of Unsupported NFS Requests: 2 Number of total NFS Mounts: 22 Number of current NFS Mounts: 7 Number of total NFS clients: 15 Number of current NFS Clients: 4
Use the refresh command to force a refresh of the cache.
Syntax:
Example:
Thin-Server> refresh Force a refresh of the cache ? (Y/ [N]): y Thin Server cache has been refreshed
Use the reset command to dynamically reset counters.
Syntax:
Example:
Thin-Server> reset all All Thin Server feature counters have been reset
Use the restart command to restart the TSF process.
Syntax:
Example:
Thin-Server> restart Restart Thin Server? (Y/ [N]): y Thin Server has been restarted
Use the set command to set the TSF caching mode.
Syntax:
Valid Values:
Example:
Thin-Server> set mode ? DISABLED ENABLED PASSTHRU Thin-Server> set mode disable Thin Server caching is now disabled